package org.news.web.domain;

import org.dromara.common.mybatis.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serial;

/**
 * 订阅功能对象 subscriptions
 *
 * @author Gu Ci
 * @date 2024-04-21
 */
@Data
@TableName("subscriptions")
public class Subscriptions{

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 订阅ID
     */
    @TableId(value = "subscription_id",type = IdType.AUTO)
    private Long subscriptionId;

    /**
     * 订阅者ID
     */
    private Long subscriberId;

    /**
     * 订阅状态：订阅是作者还是栏目
     */
    private Long status;

    /**
     * 目标栏目ID
     */
    private Long targetCategoryId;

    /**
     * 记录订阅时间
     */
    private Date creationTime;


}
